package org.holynite.fieldmanage.managed.model

import javax.faces.bean.ManagedBean
import javax.faces.bean.ViewScoped

/**
 * Created by midnite on 15/1/31.
 */
@ManagedBean
@ViewScoped
class CustomerTypeFormBean implements Serializable {
    Boolean precharged, multipleAllowed, addMode
    String typeName, selectedCharge, selectedUsable, selectedType, searchKeyword
    Double discount

    CustomerTypeFormBean() {
        addMode = false
    }

    void clearForm() {
        typeName = ""
        selectedCharge = ""
        selectedUsable = ""
        discount = 100
        precharged = true
        multipleAllowed = false
    }

    void clearSearch() {
        searchKeyword = ""
    }
}
